<template>
    <div>
        <!-- 192.168.110.179是光耀东方广场办公室AGV服务器地址 192.168.20.179是临港仓库AGV服务器地址 -->
        <!-- <iframe src="http://192.168.110.179/static/rms/#/monitor/robotControl" id="mobsf" scrolling="no" frameborder="0" style="position:absolute;top:60px;left: 209px;right:0px;bottom:100px;"/> -->
        <iframe src="http://192.168.10.200/static/rms/#/monitor/robotControl" id="mobsf"
            scrolling="no" frameborder="0"
            style="position:absolute;top:60px;left: 209px;right:0px;bottom:100px;" />
    </div>
</template>


<script>
export default {
    data() {
        return {
        }
    },
    mounted() {
        /**
        * iframe-宽高自适应显示
        */
        function changeMobsfIframe() {
            const mobsf = document.getElementById('mobsf');
            const deviceWidth = document.body.clientWidth;
            const deviceHeight = document.body.clientHeight;
            mobsf.style.width = (Number(deviceWidth) - 209) + 'px'; //数字是页面布局宽度差值
            mobsf.style.height = (Number(deviceHeight) - 60) + 'px'; //数字是页面布局高度差
        }

        changeMobsfIframe()

        window.onresize = function () {
            changeMobsfIframe()
        }
    }
}
</script>
